class Chatdata {
  bool? isSender;
  String? text;
  int type; //1 文字 2 图片
  String? time;
  bool? isShowTime;
  Chatdata(this.isSender, this.text, this.type, this.time, this.isShowTime);

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["isSender"] = isSender;
    _data["text"] = text;
    _data["type"] = type;
    _data["time"] = time;
    _data["isShowTime"] = isShowTime;
    return _data;
  }
}
